/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.model.mailfolder;

import com.unis.model.BaseModel;

/**
 * 邮件
 * 
 * @author Administrator (email:xxh@163.com)
 * @since 2013-02-21
 */
public class Mail extends BaseModel {

    private static final long serialVersionUID = 1L;

    /****************************************
     * Basic fields
     ****************************************/
    /**
     * 邮件ID
     */
    private String mailid;
    /**
     * 发送人
     */
    private String sender;
    /**
     * 发送人ID
     */
    private String senderid;
    /**
     * 1=一般 2=重要 3=非常重要
     */
    private double importantflag;
    /**
     * 发送时间
     */
    private String sendtime;
    /**
     * 邮件内容
     */
    private String content;
    /**
     * 邮件标题
     */
    private String subject;
    /**
     * 抄送人姓名列表
     */
    private String copytonames;
    /**
     * 抄送人ID列表 用','分开
     */
    private String copytoids;
    /**
     * 收件人姓名列表
     */
    private String recipientnames;
    /**
     * 收件人ID列表 用','分隔
     */
    private String recipientids;
    /**
     * 邮件状态 1=正式邮件 0=草稿邮件
     */
    private int mailstatus;
    /**
     * 附件Ids，多个附件的ID，通过,分割
     */
    private String fileids;
    /**
     * 附件名称列表，通过,进行分割
     */
    private String filenames;

    /**
     * 关联表信息项
     */
    // mailbox
    private int readflag;
    private int replyflag;
    private int delflag;
    private String userid;
    // mailfolder
    private int foldertype = 1;

    /****************************************
     * JavaBean Specify setter & getter
     ****************************************/
    public void setMailid(String mailid) {
        this.mailid = mailid;
    }

    public String getMailid() {
        return mailid;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getSender() {
        return sender;
    }

    public void setSenderid(String senderid) {
        this.senderid = senderid;
    }

    public String getSenderid() {
        return senderid;
    }

    public void setImportantflag(double importantflag) {
        this.importantflag = importantflag;
    }

    public double getImportantflag() {
        return importantflag;
    }

    public void setSendtime(String sendtime) {
        this.sendtime = sendtime;
    }

    public String getSendtime() {
        return sendtime;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubject() {
        return subject;
    }

    public void setCopytonames(String copytonames) {
        this.copytonames = copytonames;
    }

    public int getReadflag() {
        return readflag;
    }

    public void setReadflag(int readflag) {
        this.readflag = readflag;
    }

    public int getReplyflag() {
        return replyflag;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setReplyflag(int replyflag) {
        this.replyflag = replyflag;
    }

    public String getCopytonames() {
        return copytonames;
    }

    public void setCopytoids(String copytoids) {
        this.copytoids = copytoids;
    }

    public String getCopytoids() {
        return copytoids;
    }

    public void setRecipientnames(String recipientnames) {
        this.recipientnames = recipientnames;
    }

    public String getRecipientnames() {
        return recipientnames;
    }

    public void setRecipientids(String recipientids) {
        this.recipientids = recipientids;
    }

    public String getRecipientids() {
        return recipientids;
    }

    public void setMailstatus(int mailstatus) {
        this.mailstatus = mailstatus;
    }

    public int getMailstatus() {
        return mailstatus;
    }

    public void setFileids(String fileids) {
        this.fileids = fileids;
    }

    public String getFileids() {
        return fileids;
    }

    public void setFilenames(String filenames) {
        this.filenames = filenames;
    }

    public String getFilenames() {
        return filenames;
    }

    public int getFoldertype() {
        return foldertype;
    }

    public void setFoldertype(int foldertype) {
        this.foldertype = foldertype;
    }

    public int getDelflag() {
        return delflag;
    }

    public void setDelflag(int delflag) {
        this.delflag = delflag;
    }

}
